package com.atguigu.util.method_son;

import com.atguigu.util.method_fa.Product;

/**
 * @author caesar
 * @date 2025/7/7
 * @Description:
 * @apiNote
 */
public class Clothing extends Product {
    private String size;

    public Clothing() {
    }

    public Clothing(String productId, String name, double price, String size) {
        super(productId, name, price);
        this.size = size;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }


    @Override
    public String toString() {
        return super.toString() + ", 尺码: " + size;
    }
}
